package com.example.blackjack;

public class Card {	
	
	private int id;

	public Card(int id) {
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	
	@Override
	public String toString() {
		return ("" + Deck.unicodeChar[id >> 8] + ((id & 0xff) + 1)).replace("11", "J").replace("12", "Q").replace("13", "K").replaceAll("1$", "A");
	}
	
}
